package com.hermes.games.voltamundo.data;

public class TerrainCard extends Card {

  public enum Type {
    // terra civilizada
    CITY(TransportCard.Type.WALK, TransportCard.Type.HORSE, TransportCard.Type.TRAIN, TransportCard.Type.BALLOON),

    // terra selvagem
    COUNTRY(TransportCard.Type.WALK, TransportCard.Type.HORSE, TransportCard.Type.BALLOON),

    // mar
    OCEAN(TransportCard.Type.STEAMSHIP, TransportCard.Type.BALLOON),

    // sem recursos de transporte
    NO_TRANSPORT_RESOURCE(TransportCard.Type.WALK);

    private TransportCard.Type transport[];

    private Type(TransportCard.Type... transport) {
      this.transport = transport;
    }

    private boolean allowTransport(TransportCard.Type type) {
      for (TransportCard.Type t : transport) {
        if (type == t) {
          return true;
        }
      }
      return false;
    }
  }

  private Type type;

  public TerrainCard(Type type) {
    super();
    this.type = type;
  }

}
